package com.infotel.cartegrise.ihm;

import java.awt.Component;

import javax.swing.DefaultListCellRenderer;
import javax.swing.JList;

import com.infotel.prefecture.model.Marque;


public class MarqueListRenderer extends DefaultListCellRenderer {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Override
    public Component getListCellRendererComponent(JList<?> list, Object value,
            int index, boolean isSelected, boolean cellHasFocus) {
        Marque m = (Marque)value;

        Component c = super.getListCellRendererComponent(list, m.getNom(), m.getId(), isSelected,
                cellHasFocus);
        return c;
    }


}
